<template>
    <div class="about">
      <h1>作业</h1>
      <mybutton></mybutton>
      <p>-------------------------------------------------------------------------------------------</p>
      <h1>day12练习--单向数据流</h1>
      <input type="number" min="0" v-model.number="value" >
      <danxiang :value="value" @setFu="setValue"></danxiang>
    </div>
</template>
<script>
import button from "@/components/fu.vue"
import danxiang from "@/components/day12/danxiang.vue"
export default {
  components: {
    mybutton:button,
    danxiang
  },
  data() {
    return {
      value: 20,
    };
  },
  methods: {
    setValue(fuvalue){
      this.value = fuvalue
    }
  }
}
</script>
